(function(angular) {
    'use strict';
    angular.module('app', ['ngRoute', 'ngAnimate','controller.host'])
        .config(['$routeProvider', '$locationProvider',
            function($routeProvider, $locationProvider) {
                $routeProvider
                    .when('/marketApp', {
                        templateUrl: 'views/marketApp.html',
                        controller: 'AppstoreCtrl',
                    });
                $routeProvider.when('/general', {
                        templateUrl: 'views/general.html',
                        controller: 'AppstoreCtrl',
                    });
                $routeProvider.when('/hostCloud', {
                        templateUrl: 'views/hostCloud.html',
                        controller: 'hostCtrl',
                    });
                $routeProvider.when('/platCost', {
                        templateUrl: 'views/platCost.html',
                        controller: 'platCost',
                    });
                $locationProvider.html5Mode(true);
            }])
        .controller('AppstoreCtrl', ['$routeParams', function AppstoreCtrl($routeParams) {
            this.name = 'AppstoreCtrl';
            this.params = $routeParams;
        }]);
})(window.angular);